
// 引入工具类
import request from '@/utils/request.js'

// 安全检查 新增
export function safetyCheckAdd (data) {
  return request({
    url: '/business/safeInspect/add',
    method: 'post',
    data: data
  })
}

// 安全检查 修改
export function safetyCheckEdit (data) {
  return request({
    url: '/business/safeInspect/edit',
    method: 'post',
    data: data
  })
}

// 安全检查 单条
export function safetyCheckOne (params) {
  return request({
    url: '/business/safeInspect/one',
    method: 'post',
    params: params
  })
}

// 安全检查 列表
export function safetyCheckList (data, params) {
  return request({
    url: '/business/safeInspect/list',
    method: 'post',
    data: data,
    params: params
  })
}

// 安全检查结果 新增
export function safeInspectResAdd (data) {
  return request({
    url: '/business/safeInspectRes/add',
    method: 'post',
    data: data
  })
}

// 安全检查结果 修改
export function safeInspectResEdit (data) {
  return request({
    url: '/business/safeInspectRes/edit',
    method: 'post',
    data: data
  })
}

// 安全检查结果 单条
export function safeInspectResOne (params) {
  return request({
    url: '/business/safeInspectRes/one',
    method: 'post',
    params: params
  })
}

// 安全检查结果 列表
export function safeInspectResList (data, params) {
  return request({
    url: '/business/safeInspectRes/list',
    method: 'post',
    data: data,
    params: params
  })
}

// 安全检查下级公司 新增
export function safeInspectCompanyAdd (data) {
  return request({
    url: '/business/safeInspectCompany/add',
    method: 'post',
    data: data
  })
}

// 安全检查下级公司 修改
export function safeInspectCompanyEdit (data) {
  return request({
    url: '/business/safeInspectCompany/edit',
    method: 'post',
    data: data
  })
}

// 安全检查下级公司 单条
export function safeInspectCompanyOne (params) {
  return request({
    url: '/business/safeInspectCompany/one',
    method: 'post',
    params: params
  })
}

// 安全检查下级公司 列表
export function safeInspectCompanyList (data, params) {
  return request({
    url: '/business/safeInspectCompany/list',
    method: 'post',
    data: data,
    params: params
  })
}



// 考核文件 列表
export function selectAssessmendocInfo (params) {
  return request({
    url: '/business/assessmendocInfo/selectAssessmendocInfoBySignCompanyId',
    method: 'post',
    params: params
  })
}

// 指标 列表
export function indexInfoList (data) {
  return request({
    url: '/business/indexInfo/list',
    method: 'post',
    data: data
  })
}

// 指标子项 列表
export function indexTermList (data) {
  return request({
    url: '/business/indexTerm/list',
    method: 'post',
    data: data
  })
}


// 情况 列表
export function depindexCutList (data) {
  return request({
    url: '/business/indexCucondition/list',
    method: 'post',
    data: data
  })
}

// 进行中的安全检查 列表
export function safeInspectCompanyNotCompleteList (data, params) {
  return request({
    url: '/business/safeInspectCompany/notCompleteList',
    method: 'post',
    data: data,
    params: params
  })
}

// 安全检查公司 反馈被检查对象
export function safeInspectCompanyFeedback(params) {
  return request({
      url: '/business/safeInspectCompany/agreeFeedback',
      method: 'post',
      params: params
  })
}
